package com.wclass.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.wclass.model.UserMobile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 课程作业回复
 * </p>
 *
 * @author SEN
 * @since 2019-02-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("coures_task_reply")
public class CouresTaskReply extends SuperEntity<CouresTaskReply> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    @TableField(exist = false)
    private UserMobile userInfo;

    /**
     * 作业id
     */
    @TableField("task_id")
    private Long taskId;

    /**
     * 上级id
     */
    @ApiModelProperty("上级id")
    @TableField("p_id")
    private Long pId;

    /**
     * 回复内容
     */
    private String content;

    @ApiModelProperty("子评论列表")
    @TableField(exist = false)
    private List<CouresTaskReply> childReplyList;
}
